<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

require_once FCPATH.APPPATH.'libraries/Base.php';

class S_Loader extends CI_Loader {

	function __construct()
	{
		parent::__construct();
	}
	
	/*
	 * 添加模板路径
	 * @access public
	 * @param $path string 模板路径
	 * @param $cascade boolean 是否级联，就是这个路径找不到，可否继续在下个路径中找
	 * @return void
	 */
	public function add_view_path($path, $cascade = FALSE)
	{
		$path = rtrim(str_replace('\\', '/', $path), '/').'/';
		$cascade = (boolean)$cascade;
		$this->_ci_view_paths = array($path => $cascade) + $this->_ci_view_paths;
	}
	
}